package com.my.hotel.service.impl;

import com.my.hotel.entity.serverPage.Article;
import com.my.hotel.mapper.ArticleMapper;
import com.my.hotel.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class ArticleServiceImpl implements ArticleService {
    @Autowired
    private ArticleMapper articleMapper;

    public List<Article> getList() {
        return articleMapper.getList();
    }

    public void deleteArticle(int id) {
        articleMapper.delOneById(id);
    }
}
